﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DownloadValid.aspx.cs" Inherits="HardwareAs.DownloadValid" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Admin the uploaded downloads:</h2>
    <asp:ListView ID="ListView1" runat="server">
       <EmptyDataTemplate>
       No Download File Need to be Valid
       </EmptyDataTemplate>
        <ItemTemplate>
            <tr style="">
                <td>
                    <asp:Label ID="DownloadUrlLabel" runat="server" 
                        Text='<%# Eval("DownloadUrl") %>' />
                </td>
                <td>
                    <asp:Label ID="UploaderLabel" runat="server" Text='<%# Eval("Uploader") %>' />
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="APPROVE"  OnClick="Approve" CommandArgument='<%# Eval("Id")%>' />
                </td>
                <td>
                    <asp:Button ID="Button2" runat="server" Text="DISAPPROVE"  onClick="Disapprove" CommandArgument='<%# Eval("Id")%>' />
                </td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server" >
                <tr runat="server">
                    <td runat="server">
                        <table ID="itemPlaceholderContainer" runat="server" border="1" style="">
                            <tr runat="server" style="">
                                <th runat="server">
                                    Driver File</th>
                                <th runat="server">
                                    Uploaded By</th>
                                <th runat="server" colspan="2">
                                    ACTION BUTTON</th>
                            </tr>
                            <tr ID="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="">
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        
    </asp:ListView>
    </asp:Content>
